1) Added the ability to disable routes without deleting them.
Signed-off-by: Khachatryan Karen <[email protected]>
o = s.option(form.Value, 'domains_path', _('Domains path'), _('Domains path/URL. If you want to add domains via LuCI, specify the files in the /etc/antiblock folder.'));
o.default = '/etc/antiblock/';
+ o = s.option(form.Flag, 'enabled', _('Enable'));
+ o.default = o.enabled;
+ o.editable = true;
+
return m.render();
}
});
msgid "Domains path:"
msgstr ""
+#: applications/luci-app-antiblock/htdocs/luci-static/resources/view/antiblock/routes.js:24
+msgid "Enable"
+msgstr ""
+
#: applications/luci-app-antiblock/htdocs/luci-static/resources/view/antiblock/args.js:13
msgid "Enabled"
msgstr ""